# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=aqbanking
pkgver=6.2.2
pkgrel=0
pkgdesc="A library for online banking and financial applications"
url="http://www.aquamaniac.de/aqbanking"
arch="all"
license="GPL-2.0-or-later"
depends="gwenhywfar ktoblzcheck"
makedepends="gwenhywfar-dev gmp-dev gettext-dev bzip2
	automake autoconf libtool bash"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://www.aquamaniac.de/rdm/attachments/download/334/$pkgname-$pkgver.tar.gz
	libintl.patch"

prepare() {
	default_prepare
	autoreconf -vfi
}

check() {
	make -C "$builddir" check
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-python \
		--with-backends="aqhbci aqofxconnect"
	make -j1
}

package() {
	make -j1 DESTDIR="$pkgdir" install
}

sha512sums="9f553a03a1ecc369009929449687b0dc02a75689782a39696260bfd73f24e0d2dbc6b6d4100aaf85618f85c4de7690ca0c3f039109187fd35a872f2065d4382a  aqbanking-6.2.2.tar.gz
142f0037abfc18e4ce297b815bcf6f24c50a4a46581d58651e7e76aedb9977e42b58f7a7fb145d6d463e61e99fffb018e238d3f7c81cb306526b4fcabaacda71  libintl.patch"
